package net.itheima.mm.service.impl;

import net.itheima.mm.dao.CourseMapper;
import net.itheima.mm.entity.QueryPageBean;
import net.itheima.mm.pojo.Course;
import net.itheima.mm.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseMapper courseMapper;
    @Override
    public List<Course> findListByPage(QueryPageBean queryPageBean) {
        return courseMapper.findListByPage(queryPageBean);
    }

    @Override
    public Long findTotalListByPage(QueryPageBean queryPageBean) {
        return courseMapper.findTotalListByPage(queryPageBean);
    }
}
